/* Tailwind CSS v4 指令 */
@import "tailwindcss";

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

#app {
  height: 100vh;
  width: 100vw;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 应用容器 */
.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: none !important;
}

/* 头部样式 */
.header {
  width: 100%;
  height: 64px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.header-content {
  width: 100%;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 主布局 */
.main-layout {
  display: flex;
  width: 100%;
  height: calc(100vh - 64px);
  flex: 1;
}

/* 侧边栏 */
.sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid #e5e7eb;
  height: 100%;
  flex-shrink: 0;
}

/* 主内容区 */
.main-content {
  flex: 1;
  background: #f8fafc;
  overflow-y: auto;
  height: 100%;
  width: calc(100vw - 240px);
}

.content-wrapper {
  width: 100%;
  max-width: none;
  padding: 24px;
  min-height: 100%;
}

/* 自定义工具类（Tailwind会自动提供基础类） */

/* 卡片样式 */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn:hover {
  background: #f9fafb;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
}

.input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 这些类现在由Tailwind自动提供，删除手动定义 */

/* Tailwind会自动提供这些颜色和尺寸类 */

/* 表格样式增强 */
table {
  border-collapse: collapse;
}

table th {
  background-color: #f9fafb;
}

table tr:hover {
  background-color: #f9fafb;
}

/* 按钮悬停效果 */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片悬停效果 */
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 页面专用样式 */
.dashboard-container {
  width: 100%;
  height: 100%;
  max-width: none;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  width: 100%;
}

/* 强制全宽布局 */
* {
  max-width: none !important;
}

.w-full, .grid, .card, .main-content, .content-wrapper,
.dashboard-container, .page-header, table, .overflow-x-auto {
  max-width: none !important;
  width: 100% !important;
}

/* 网格布局全宽 */
.grid {
  width: 100% !important;
  max-width: none !important;
}

/* Grid类现在由Tailwind自动提供 */
